<template>
	<view class="button-box">
		<u-button  :type="type" :disabled="disabled" throttle-time="500" :custom-style="customStyle">
			<slot></slot>
		</u-button>
	</view>
</template>

<script>
	export default{
		name:'cu-button',
		props:{
			type:{
				type:String,
				default:'primary'
			},
			disabled:{
				type:Boolean,
				default:false
			},
			customStyle: {
				type: Object,
			}
		},
		// computed:{
		// 	customStyle(){
		// 		return  {
        //             background: this.color,
		// 			color: 'red'
        //         }
		// 	}
		// }
	}
</script>

<style lang="scss" scoped>
	
</style>